import { post } from '@/utils/http'
const baseUrl = 'http://localhost:6013/order-client'
export function getHomeStats() {
  return post(`${baseUrl}/cms/statistics/getHomeStats`)
}

export function getWorkOrderStatusStats(){
  return post(`${baseUrl}/cms/statistics/getWorkOrderStatusStats`)
}
export function getWorkOrderTypeStats(){
  return post(`${baseUrl}/cms/statistics/getWorkOrderTypeStats`)
}
export const getWorkOrderTrendStats = (days = 7) => {
  return post(`${baseUrl}/cms/statistics/getWorkOrderTrendStats`,{},{
      params: { // URL 查询参数
       days:days
      },
    })
};

